import { request } from "@umijs/max";

// /dev-api/ying/file/upload

export async function uploadFile(
  body: FormData,
  options?: { [key: string]: any }
) {
  return request<API.FileUploadResponse>("/api/ying/file/upload", {
    method: "POST",
    data: body,

    ...(options || {}),
  });
}
